package com.mixcus.server.controller;

import com.mixcus.server.dto.StudentPaginationDto;
import com.mixcus.server.entity.Result;
import com.mixcus.server.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/student")
public class StudentController {

    @Autowired
    private StudentService studentService;

    @PostMapping("/findPage")
    public Result findPage(@RequestBody StudentPaginationDto studentPaginationDto) {

        return new Result(true, "查询成功",studentService.findPage(studentPaginationDto));
    }

}

